state = 1

s1 = "Hello."
s2 = "How are you\?"
s3 = "Glad to hear it!"
s4 = "Oh, that's not good."

displaystring = s1
displayimage = "happy"

function pressedA(arg)
  if state==1 then
    state = 2
    displaystring = s2
    pushScreen("a2")
    pushScreen("m1")
  elseif state==2 then
    if arg == "yes" then
      state = 3
      displaystring = s3
    else
      state = 3
      displaystring = s4
      displayimage = "sad"
    end
  end
end

function cool()
 println("This works as well")
end

function blah()
 println("You doubt me what")
end

println("Lua setup was successful")